package cn.no7player.controller;


import cn.no7player.response.ResponseBean;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Controller
@RequestMapping(value = "/test")
public class IndexController {


    @RequestMapping(value = "/index",method = RequestMethod.POST)
    private String index(@RequestParam("folderName") String folderName)
    {
        return "index";
    }


    @RequestMapping(value = "/json",method = RequestMethod.POST)
    @ResponseBody
    private Integer json(@RequestParam("folderName") String folderName)
    {
        return 1;
    }


    @RequestMapping(value = "/get")
    @ResponseBody
    private ResponseBean index2()
    {
        return new ResponseBean("haha");
    }
}
